package com.ch.design.kingdom;

/**
 * 饿汉模式（在开始就初始化）
 * @author CH
 * @date 2022/2/22
 */
public class King01 {
    private static King01 king = new King01();
    private String name = "国王";

    private void King01(){}

    public static King01 getKing(){
        return king;
    }
}
